package com.bookstore.service;

import com.bookstore.entity.Page;
import com.bookstore.entity.Product;

import java.util.List;

public interface ProductService {
    int insertProduct(Product product);

    int updateProduct(Product product);

    int deleteProduct(Long productId);

    List<Product> queryAllProducts();

    Product queryProductById(Long productId);

    Page<Product> page(int pageNo, int pageSize);
}
